package com.eee.xiang.disruptor.controller;


import com.eee.xiang.disruptor.event.Trade;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/")
@Slf4j
public class CurlController {

    @RequestMapping("curl")
    public String curl(@RequestBody Trade trade){
        log.info("params={}",trade.toString());
        return "curl 请求成功";
    }
}
